package com.cskaoyan.relation;

import java.util.ArrayList;

/**
 * @author : qj
 * @since: 2022/10/13  18:57
 */
public class RelationExecution {
    public static void main(String[] args) {
        SecurityManager securityManager = new SecurityManager();

        ArrayList<Realm> realms = new ArrayList<>();
        realms.add(new Realm());
        realms.add(new Realm());
        realms.add(new Realm());

        securityManager.setRealms(realms);

        Authenticator authenticator = new Authenticator();
        //authenticator.setRealms();
        securityManager.setAuthenticator(authenticator);
    }
}
